﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SL8.SL.Controls
{
    public abstract class FieldSetBase : ContentControlBase
    {
        #region 标题
        /// <summary>
        /// 标题
        /// </summary>
        public string GroupText
        {
            get { return (string)this.GetValue(FieldSetBase.GroupTextProperty); }
            set { this.SetValue(FieldSetBase.GroupTextProperty, value); }
        }

        public static readonly DependencyProperty GroupTextProperty =
            DependencyProperty.Register("GroupText",
            typeof(string),
            typeof(FieldSetBase),
            new PropertyMetadata(FieldSetBase.GroupTextPropertyChangedCallback));

        private static void GroupTextPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FieldSetBase ctrl = d as FieldSetBase;
            if (ctrl != null)
            {
                ctrl.OnGroupTextChanged();
            }
        }

        private void OnGroupTextChanged()
        { }
        #endregion
    }
}
